package com.sls.nzdapplication.model;

import com.alibaba.fastjson.JSONObject;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;

@Entity
public class WellSectionHole {

    @Id
    private String id;

    private Date createTime;

    private String createBy;

    private Date modifyTime;

    private String modifyBy;

    private String sectionIdx;

    private String holeType;

    private String holeMaterial;

    private float up;

    private float left;

    private String holeSize;

    private String cableSections;

    private String wellSectionIdx;

    public JSONObject toJson(){
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("id",this.id);
        jsonObject.put("createTime",this.createTime);
        jsonObject.put("createBy",this.createBy);
        jsonObject.put("modifyTime",this.modifyTime);
        jsonObject.put("modifyBy",this.modifyBy);
        jsonObject.put("sectionIdx",this.sectionIdx);
        jsonObject.put("holeType",this.holeType);
        jsonObject.put("holeMaterial",this.holeMaterial);
        jsonObject.put("up",this.up);
        jsonObject.put("left",this.left);
        jsonObject.put("holeSize",this.holeSize);
        jsonObject.put("cableSections",this.cableSections);
        jsonObject.put("wellSectionIdx",this.wellSectionIdx);
        return jsonObject;
    }

    @Generated(hash = 595972910)
    public WellSectionHole(String id, Date createTime, String createBy,
            Date modifyTime, String modifyBy, String sectionIdx, String holeType,
            String holeMaterial, float up, float left, String holeSize,
            String cableSections, String wellSectionIdx) {
        this.id = id;
        this.createTime = createTime;
        this.createBy = createBy;
        this.modifyTime = modifyTime;
        this.modifyBy = modifyBy;
        this.sectionIdx = sectionIdx;
        this.holeType = holeType;
        this.holeMaterial = holeMaterial;
        this.up = up;
        this.left = left;
        this.holeSize = holeSize;
        this.cableSections = cableSections;
        this.wellSectionIdx = wellSectionIdx;
    }

    @Generated(hash = 509602078)
    public WellSectionHole() {
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return this.createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getModifyTime() {
        return this.modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getModifyBy() {
        return this.modifyBy;
    }

    public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy;
    }

    public String getSectionIdx() {
        return this.sectionIdx;
    }

    public void setSectionIdx(String sectionIdx) {
        this.sectionIdx = sectionIdx;
    }

    public String getHoleType() {
        return this.holeType;
    }

    public void setHoleType(String holeType) {
        this.holeType = holeType;
    }

    public String getHoleMaterial() {
        return this.holeMaterial;
    }

    public void setHoleMaterial(String holeMaterial) {
        this.holeMaterial = holeMaterial;
    }

    public float getUp() {
        return this.up;
    }

    public void setUp(float up) {
        this.up = up;
    }

    public float getLeft() {
        return this.left;
    }

    public void setLeft(float left) {
        this.left = left;
    }

    public String getHoleSize() {
        return this.holeSize;
    }

    public void setHoleSize(String holeSize) {
        this.holeSize = holeSize;
    }

    public String getCableSections() {
        return this.cableSections;
    }

    public void setCableSections(String cableSections) {
        this.cableSections = cableSections;
    }

    public String getWellSectionIdx() {
        return this.wellSectionIdx;
    }

    public void setWellSectionIdx(String wellSectionIdx) {
        this.wellSectionIdx = wellSectionIdx;
    }

}
